import pygame

clock = None

def show():
	global clock
	pygame.display.init()
	screen = pygame.display.set_mode((300,300))
	clock = pygame.time.Clock()

def run(times=-1):
	global clock
	stoped = False
	while((not stoped) and times != 0):
		for event in pygame.event.get():
			if event.type == pygame.QUIT:
				pygame.display.quit()
				stoped = True
		clock.tick(60)
		if times > 0:
			times -= 1


def hide():
	pygame.display.quit()
	
	
	